package bean;

public class User {
    public String username; //账户
    public String password; //密码
    public int type;     //用户类型
    public String name;     //姓名
    public String mobile;   //手机号
    public User(){

    }
    public User(String str1, String str2, int str3, String str4, String str5){
        username=str1;
        password=str2;
        type=str3;//1为普通用户，2为管理员用户
        name=str4;
        mobile=str5;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setType(int type) {
        this.type = type;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", type=" + type +
                ", name='" + name + '\'' +
                ", mobile='" + mobile + '\'' +
                '}';
    }
}
